home *** CD-ROM | disk | FTP | other *** search
- /****i* SOURCE_FILE/INFO
- *
- * NAME
- * StatusDlg.js
- *
- * USAGE
- * Part of Netobjects JavaScript Library.
- *
- * COPYRIGHT
- * Copyright ⌐ 2000-2005 Website Pros, Inc.
- * All Rights Reserved.
- *
- * This is an unpublished work protected by Website Pros, Inc.
- * as a trade secret, and is not to be used or disclosed except as
- * expressly provided in a written license agreement executed by
- * you and Website Pros, Inc.
- *
- * <copyright@websitepros.com>
- *
- * NOTES
- * JavaScript code.
- *
- *****/
-
- if (!IS.isModuleInitialized("IS.NOF.DIALOGS.StatusDlg"))
- {
-
- /****h* NOF_JavaScript_Library/NOF.DIALOGS.StatusDlg
- *
- * NAME
- * NOF.DIALOGS.StatusDlg
- *
- * DESCRIPTION
- *
- * The <code>StatusDlg</code> class
- * External dependencies: NOF.App
- ****/
-
- /**
- * constructor
- **/
- function DIALOGS_StatusDlg() {
- this.__proto__ = DIALOGS_StatusDlg.prototype;
- }
- {
- var member = DIALOGS_StatusDlg.prototype;
- member.CLASS_NAME = "DIALOGS.StatusDlg";
-
- var method = DIALOGS_StatusDlg.prototype;
- /*
- open(String pTitle, String pText)
- boolean setText(String pText)
- boolean close(int pTimeout)
- */
-
- /**
- * Opens a non-modal dialog that can contain a status message.
- * The purpose is to show status information while performing potentially lengthy operations
- * within an script. The dialog can be closed by calling close.
- * If a status dialog is alreay open that dialog will be modified, i.e. this will not open a new status dialog.
- * The dialog contains a cancel button. The state of the cancel button can be checked
- * by calling the functions setText and close.
- *
- * @param title specifies the text displayed in the title bar of the dialog.
- * @param text specifies the text displayed in the dialog. Up to four lines of text can be displayed.
- **/
- method.open = function (/*String*/ title,/*String*/ text) {
- NOF.App.getFSIApp().OpenStatusDialog(title, text);
- }
-
- /**
- * Closes the status dialog.
- *
- * @param pTimeout specifies a number of milliseconds to wait before closing the dialog.
- * @return true if the user has clicked the cancel button, otherwise it will return false.
- **/
- method.close = function (/*int*/ pTimeout) {
- return NOF.App.getFSIApp().CloseStatusDialog(pTimeout);
- }
-
- /**
- * Replaces the text in the status dialog.
- *
- * @param text specifies the new text to be displayed in the dialog.
- * @return true if the user has clicked the cancel button, otherwise it will return false.
- **/
- method.setText = function (/*String*/ text) {
- return NOF.App.getFSIApp().StatusDialogText(text);
- }
-
- /**
- * Show the status dialog. It is neccessary to be called (in order to show
- * the dialog) only in the case which the dialog was previously hiden.
- **/
- method.show = function () {
- return NOF.App.getFSIApp2().SetShowStatusDialog(true);
- }
-
- /**
- * Hide the status dialog.
- **/
- method.hide = function () {
- return NOF.App.getFSIApp2().SetShowStatusDialog(false);
- }
-
- }
- DIALOGS.__proto__.StatusDlg = DIALOGS_StatusDlg;
- }